package com.ddd.test.repo;

import com.ddd.test.aggregate.aggrorder.OrderEntity;

public interface OrderRepo {

	  /**
	   * 从仓库移除聚合
	   *
	   * 
	   */
	  void remove(OrderEntity orderEntity);

	  /**
	   * 将聚合添加到仓库，存在则更新
	   *
	   * @param OrderEntity 记录
	   * 
	   */
	  void add(OrderEntity orderEntity);


	  boolean hasOrderEntity(OrderEntity orderEntity) ;
}
